package com.lb.bs.demo.update;

import com.lb.bs.client.annotation.LBClass;
import com.lb.bs.client.annotation.LBUpdateClass;
import com.lb.bs.client.callback.UpdateCallBackService;
import com.lb.bs.client.processor.beans.ProcessorDynamicHandlerBean;
import org.springframework.stereotype.Service;

/**
 * program: LB-BS-Client
 * author: bsworld.xie
 * create: 2019-12-06 10:58
 * description:
 */
@LBUpdateClass(itemKeys = "/lb/student/name")
@Service
public class UpdateCallBack extends UpdateCallBackService {

    @Override
    public void reloadOnClass(ProcessorDynamicHandlerBean bean) {
        System.out.println("class reload");
    }

    @Override
    public void reloadOnKey(ProcessorDynamicHandlerBean  bean) {
        System.out.println("-----------key reload, key-----------:" + bean);
    }
}
